﻿

using System;
using System.Text;
using System.Reflection;
using Microsoft.Practices.Unity.InterceptionExtension;
using System.Runtime.Caching;

using Microsoft.Practices.EnterpriseLibrary.Caching;
using System.Collections.Generic;

namespace Demo.Infrastructure
{

    [AttributeUsage(AttributeTargets.Method,AllowMultiple=false,Inherited =false)]
    public class CacheAttribute : Attribute
    {
        public CacheType Type { get; set; }

        public string[] Methods { get; set; }

        public CacheAttribute(CacheType type)
        {
            this.Type = type;
        }

        public CacheAttribute(CacheType type,params string[] methods)
        {
            this.Type = type;
            this.Methods = methods;
        }
    }

}
